<?php
/**
 * Created by PhpStorm.
 * User: THUNDEROBOT
 * Date: 2020/11/17
 * Time: 9:05
 */
namespace  app\admin\validate;

use think\Validate;

class Teachers extends Validate
{
    protected $rule = [
        'form-username' => 'require|alphaDash|length:3,18',
        'form-password' => 'require|alphaDash|length:3,20',
        'uCaptcha' => 'require|captcha'

    ];
    protected $message = [
        'form-username.require' => '账号不能为空',
        'form-username.alphaDash' => '账号可以用数字和字母，下划线和破折号',
        'form-username.length' => '账号长度为3~18个字符',
        'form-password.require' => '密码不能为空',
        'form-password.alphaDash' => '密码数字和字母，下划线和破折号',
        'form-password.length' => '密码长度为3~20个字符',
    ];


//    $validate = Loader::validare('User');
//
//    if(!validate->check($data)){
//        dump($)
//}


}